Skip to content

feat(nextjs): Add automatic monitors for Vercel Cron Jobs - #8088

Merged
lforst merged 9 commits into
developfrom
lforst-auto-crons
May 10, 2023
Merged

feat(nextjs): Add automatic monitors for Vercel Cron Jobs#8088
lforst merged 9 commits into
developfrom
lforst-auto-crons

Conversation

@lforst

@lforst lforst commented May 9, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@lforst
lforst requested review from AbhiPrasad, Lms24 and mydea May 10, 2023 08:08
Comment thread packages/nextjs/src/config/types.ts Outdated
Comment thread packages/nextjs/src/config/types.ts
Comment thread packages/nextjs/src/config/webpack.ts Outdated
logger.info(
`${chalk.cyan(
'info',
)} - Creating Sentry cron monitors for your Vercel Cron Jobs. You can disable this feature by setting the ${chalk.bold.cyan(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: Should we only log this out if the crons field is defined? Otherwise I can see how this might get confusing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: 'in_progress',
},
{
checkinMargin: 2, // two minutes - in case Vercel has a blip

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a discussion with the crons team. The missed checkins were a bug in the product when the margin is set to 0.

Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
Comment thread packages/nextjs/src/config/types.ts Outdated
Luca Forstner and others added 2 commits May 10, 2023 14:41

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kitty-cat-sandwich

@lforst
lforst merged commit 6be91da into develop May 10, 2023
@lforst
lforst deleted the lforst-auto-crons branch May 10, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants